﻿using UnityEngine;
using Utils;

public class PrefabEntity
{
    public PrefabEntity(string path, string name)
    {
        Path = path;
        Name = name;
    }

    public string Path { get; set; }
    public string Name { get; set; }

    public GameObject GeneratePrefab(GameObject parent)
    {
        return UITool.InstantiatePrefabWithParent(parent, Path, Name);
    }
}